<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="fm" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta charset="UTF-8">
<!-- 引入JQuery -->
<script type="text/javascript" src="${pageContext.request.contextPath}/statics/jquery-easyui-1.5.2/jquery.min.js"></script>
<!-- 引入EasyUI -->
<script type="text/javascript" src="${pageContext.request.contextPath}/statics/jquery-easyui-1.5.2/jquery.easyui.min.js"></script>
<!-- 引入EasyUI的中文国际化js，让EasyUI支持中文 -->
<script type="text/javascript" src="${pageContext.request.contextPath}/statics/jquery-easyui-1.5.2/locale/easyui-lang-zh_CN.js"></script>
<!-- 引入EasyUI的样式文件-->
<link rel="stylesheet" href="${pageContext.request.contextPath}/statics/jquery-easyui-1.5.2/themes/default/easyui.css" type="text/css"/>
<!-- 引入EasyUI的图标样式文件-->
<link rel="stylesheet" href="${pageContext.request.contextPath}/statics/jquery-easyui-1.5.2/themes/icon.css" type="text/css"/>
</head>
<body>
	<div id="dlg" style="width:550px;padding:10px"><!-- class="easyui-dialog" title="添加车辆信息" -->
		<div style="padding:10px 60px 20px 60px">
	    <form id="ff" method="post" action="${pageContext.request.contextPath }/carManager/ToAddCarNews" enctype="multipart/form-data" >
	    	<table cellpadding="5">
	    		<tr>
	    			<td>汽车型号:</td>
	    			<td><input class="easyui-textbox" type="text" name="type" data-options="required:true" style="width: 250px;height: 30px;" ></input></td>
	    		</tr>
	    		<tr>
	    			<td>品牌:</td>
	    			<td><input class="easyui-textbox" type="text" name="brand" data-options="required:true" style="width: 250px;height: 30px;" ></input></td>
	    		</tr>
	    		<tr>
	    			<td>发动机:</td>
	    			<td><input class="easyui-textbox" type="text" name="engine" data-options="required:true" style="width: 250px;height: 30px;" ></input></td>
	    		</tr>
	    		<tr>
	    			<td>进价:</td>
	    			<td><input class="easyui-textbox" type="text" name="inprice" data-options="required:true" style="width: 250px;height: 30px;"></input></td>
	    		</tr>
	    		<tr>
	    			<td>售价:</td>
	    			<td><input class="easyui-textbox" type="text" name="outprice" data-options="required:true" style="width: 250px;height: 30px;"></input></td>
	    		</tr>
	    		<tr>
	    			<td>颜色:</td>
	    			<td><input class="easyui-textbox" type="text" name="color" data-options="required:true" style="width: 250px;height: 30px;"></input></td>
	    		</tr>
	    		<tr>
	    			<td>最小库存:</td>
	    			<td><input class="easyui-textbox" type="text" name="minnum" data-options="required:true" style="width: 250px;height: 30px;"></input></td>
	    		</tr>
	    		<tr>
	    			<td>当前库存:</td>
	    			<td><input class="easyui-textbox" type="text" name="nownum" data-options="required:true" style="width: 250px;height: 30px;"></input></td>
	    		</tr>
	    		<tr>
	    			<td>驱动方式:</td>
	    			<td>
	    				<select class="" name="energy">
	    					<option>----选择驱动方式----</option>
	    					<option value="font">前轮驱动</option>
	    					<option value="behand">后轮驱动</option>
	    					<option value="all">四轮驱动</option>
	    				</select>
	    			</td>
	    		</tr>
	    		<tr>
	    			<td>供货商:</td>
	    			<td>
	    				<select class="" name="supportId" id="gonghuo"></select>
	    			</td>
	    			<!-- <td><font color="red"></font></td> -->
	    		</tr>
	    		<!-- <tr>
	    			<td>详情介绍:</td>
	    			<td><input class="easyui-textbox" name="des" data-options="multiline:true" style="height:60px"></input></td>
	    		</tr> -->
	    		<tr>
	    			<td>图片展示:</td>
	    			<td><input type="file" class="" name="pic" /></td>
	    			<td><font color="red"></font></td>
	    		</tr>
	    	</table>
	    </form>
	    </div>
	</div>
	
	
<%-- 	<fm:form id="userForm" name="userForm" method="post" action="${pageContext.request.contextPath }/jsp/adduser.do" enctype="multipart/form-data"
	        modelAttribute="user">
	        	<div>
                    <label for="userCode">用户编码：</label>
                    <fm:input path="usercode" id="userCode" value=""/>
                    <fm:errors path="usercode" ></fm:errors>
					<!-- 放置提示信息 -->
					<font color="red"></font>
                </div>
                <div>
                    <label for="userName">用户名称：</label>
                    <fm:input path="username" id="userName" value=""/>
                    <fm:errors path="username" ></fm:errors>
					<font color="red"></font>
                </div>
                <div>
                    <label for="userPassword">用户密码：</label>
                    <fm:password path="userpassword" id="userPassword" value="" />
                    <fm:errors path="userpassword" ></fm:errors>
					<font color="red"></font>
                </div>
                <div>
                    <label for="ruserPassword">确认密码：</label>
                    <input type="password" name="ruserPassword" id="ruserPassword" value="">
                    <fm:errors path="usercode" ></fm:errors>
					<font color="red"></font>
                </div>
                <div>
                    <label >用户性别：</label>
                    <fm:select path="gender" id="gender">
                    	<fm:option value="1" >男</fm:option>
                    	<fm:option value="2" >女</fm:option>
                    </fm:select>
                </div>
                <div>
                    <label for="birthday">出生日期：</label>
                    <fm:input path="birthday" Class="Wdate" id="birthday" readonly="readonly" onclick="WdatePicker();" />
                    <fm:errors path="birthday" ></fm:errors>
					<font color="red"></font>
                </div>
                <div>
                    <label for="phone">用户电话：</label>
                    <fm:input path="phone" id="phone" value=""/>
                    <fm:errors path="phone" ></fm:errors>
					<font color="red"></font>
                </div>
                <div>
                    <label for="address">用户地址：</label>
                    <fm:input path="address" id="address" value=""/>
                    <fm:errors path="address" ></fm:errors>
                </div>
                <div>
                    <label >用户角色：</label>
                    <!-- 列出所有的角色分类 -->
                    <fm:select path="userrole" id="userRole">
                    	<fm:option value="0" >--请选择--</fm:option>
                    	<c:forEach items="${roleList}" var="role">
                    		<fm:option value="${role.id}" >${role.rolename}</fm:option>
						</c:forEach>
                    </fm:select>
	        		<font color="red"></font>
                </div>
                <div>
                	<input type="hidden" id="errorinfo" value="${uploadFileError}"/>
                    <label for="a_idPicPath">证件照：</label>
                   	<input type="file" name="attachs" id="a_idPicPath"/>
                    <font color="red"></font>
                </div>
               <div>
                	<input type="hidden" id="errorinfo_wp" value="${uploadWpError}"/>
                    <label for="a_workPicPath">工作证照片：</label>
                   	<input type="file" name="attachs" id="a_workPicPath"/>
                    <font color="red"></font>
                </div>
                <div class="providerAddBtn">
                    <input type="button" name="add" id="add" value="保存" >
					<input type="button" id="back" name="back" value="返回" >
                </div>
	        	
	        </fm:form> --%>
	
	<script>
		function submitForm(){
			$('#ff').form('submit');
			$('#ff').dialog('close');
		}
		function clearForm(){
			$('#ff').form('clear');
		}
		function closeForm(){
			$('#dlg').dialog('close');
		}
</script>
<script type="text/javascript" src="${pageContext.request.contextPath }/statics/js/addcar.js"></script>
</body>
</html>